package overrideoverwrite;

/**
 * @ClassName Dog
 * @Date 2024/11/5 20:57 18
 * @Author Jack Chen
 * @Description serenity-cucumber-auto-project-jack
 * @Version 1.0
 */

public class Dog extends Animal {
    public Dog(String name) {
        super(name);
    }

    @Override
    public void voice() {
        System.out.println(name + "在汪汪汪的叫^^^^^^^");
    }
}
